home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d27 / em6805.arc / EM6805.DOC next >
Text File  |  1991-02-09  |  6KB  |  177 lines

  1.        EM6805 - A Simulator for the Motorola MC68HC705C8 Microcontroller
  2.  
  3.                           Version 1.1   January 1991
  4.  
  5.  
  6. This program is a development tool for the testing and simulation of the
  7. MC68HC705C8 microcontroller. The object program, in PROM image format, is
  8. executed in the virtual machine. It is possible to follow the program
  9. through its instructions to verify that the program is correct before
  10. committing it to silicon.
  11.  
  12.  
  13. SYSTEM REQUIREMENTS:-
  14. IBM or compatible system, 1 floppy drive, 256K, EGA/VGA screen
  15.  
  16.  
  17. USAGE:-
  18. From the opening screen, if an unregistered version is used, the oportunity
  19. to perform registration is given. Registration consists of entering the
  20. users registered name and registration number. If the version is already
  21. registered, then the registration screen is bypassed and the user is
  22. prompted for the name of the PROM object file. No default path, name or
  23. extension is provided. Note that the PROM file must be exactly 8,192 (8K)
  24. bytes long, i.e. an EPROM (2764) image.
  25.  
  26. With the target program loaded, a number of commands may be used.
  27.   
  28.                             
  29.  F1 - HELP screen.     
  30.  F  - file image save       
  31.  I  - interrupt service     
  32.  G  - restart (1FFE-1FFF)   
  33.  E  - execution rate change 
  34.  X  - change index register 
  35.  A  - change accumulator A  
  36.  P  - change Program Counter
  37.  S  - change Stack Pointer  
  38.  B  - set breakpoint.       
  39.  C  - clear breakpoint.     
  40.  M  - memory examine/alter. 
  41.  R  - run until breakpoint  
  42.        or illegal address   
  43.  T  - toggle trace print
  44.  +  - single step           
  45.  Q  - quit.                 
  46.  
  47.  
  48. F1  Pops up a help window showing the available commands as above.
  49.  
  50. F  Saves the target program back to disk. This is useful after some memory
  51.    locations may have been changed as a result of the simulation and
  52.    debugging session. This feature is only available in the registered
  53.    version.
  54.  
  55. I  Interrupt posting. While running, it is possible to raise an interrupt
  56.    at any time by pressing the I key. This is effectively providing the
  57.    ability to cause an external interrupt at any time. Should interrupts
  58.    be enabled, then the progress of the interrupt routine may be observed
  59.    (and debugged!)
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. G  Restart the object program. This has the same effect as providing a
  69.    power on reset or similar hard reset to microcontroller. Note that
  70.    the target program is not reloaded but uses the program that may
  71.    have had alterations made.
  72.  
  73. E  Change the rate of executing the instructions in the simulator. The
  74.    rate can be altered from 100+ instructions/sec to approx 1 instruction
  75.    per 5 seconds. This feature is not available on the unregistered
  76.    version.
  77.  
  78. X  Change the index register.
  79.  
  80. A  Change the accumulator.
  81.  
  82. P  Change the program counter.
  83.  
  84. S  Change the stack pointer.
  85.  
  86. B  Set a breakpoint. Program execution will run until a breakpoint is
  87.    reached. Up to 10 breakpoints may be set at one time.
  88.  
  89. C  Clear a breakpoint that was previously set with a B. Note that the
  90.    breakpoint must be explicitly defined as no check is made against
  91.    those that may be set.
  92.  
  93. M  Memory examine/alter. The full 4-digit hex address must be used in
  94.    specifying the address. a 2-digit Hex number is required for the data.
  95.    Note that the first 32 bytes of I/O are shown at all times on-screen.
  96.  
  97. R  Run the program at the rate specified by the E command. Execution will
  98.    proceed until 1) a breakpoint is reached, 2) the program runs into
  99.    illegal memory space (above 8K memory space) or 3) the user presses
  100.    the ESC key.
  101.  
  102. T  Toggles the print trace function. If the printer is on-line and ready,
  103.    a trace of the program will be printed. If the printer is not ready
  104.    and available, then the emulation will continue without printing. This
  105.    feature is not available on the unregistered version.
  106.  
  107. +  Single step one instruction for each depression of the + key.
  108.  
  109. Q  Quit the program.
  110.  
  111.  
  112. Obviously it is not possible to interface to the external world as
  113. in a full micro simulator but it is possible to reflect the external
  114. inputs by pausing execution and changing the appropriate I/O register
  115. to reflect the state of the external device and then continuing the
  116. execution of the program.
  117.  
  118. This program was developed as a result of a need for proving software
  119. for the MC68HC705C8 microcontroller and has speeded up the development
  120. cycle considerably. It is written in QuickBASIC ver 4.5 and uses a
  121. number of library routines for screen presentation from the Toolbox
  122. of Christy Gemmell to whom acknowledgement is given.
  123.  
  124. Although this variant is written specifically for one version of the
  125. Motorola 6805 family, it would be relatively easy to adapt it for
  126. other members if there is sufficient interest.
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.                        DISCLAIMER
  138.  
  139. The software is provided without liability and it is the users
  140. responsibility to to determine the suitableness for his use.
  141.  
  142.                      ______________
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150. REGISTRATION:- The registration procedure buries the registration
  151. information in the program file in the registration process. Once
  152. registration has occurred, the program should not be patched or
  153. altered as this will inevitably cause failures.
  154.  
  155. To assist with the funding of software such as this, registration
  156. in accordance with the principles of "Shareware" is recommended.
  157.  
  158. Registration ($AUS50 or $US40) may be obtained from:-
  159.  
  160.               Peter J. Ford
  161.               Polygon C.S.S.
  162.               7 Sherman Street
  163.               Forest Hill
  164.               Victoria
  165.               Australia   3131
  166.  
  167. Registered users have the extended facilities of the program and support
  168. for this and subsequent releases of which they will be notified from
  169. time to time.
  170.  
  171. This software may be freely distributed in its unregistered form with
  172. no charge being made for it apart from a nominal charge not exceeding
  173. $10 for copying.
  174.  
  175.                                  Peter J. Ford  -  author.
  176.  
  177.